<template>
	<div class="editbanner" @click="changename">
		<span>{{ left }}</span>
		<span><slot name="right"></slot></span>
	</div>
</template>

<script>
export default {
	methods: {
		changename() {
			this.$emit('changename');
		}
	},
	props: ['left']
};
</script>

<style>
.editbanner {
	background-color: white;
	padding: 15px;
	font-size: 14px;
	color: #333;
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid #f4f4f4;
}
</style>
